<?php /* Smarty version 2.6.16, created on 2013-09-10 02:29:52
         compiled from ../templates/default//modules/register/step2.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/default//modules/register/step2.tpl', 51, false),array('modifier', 'stripslashes', '../templates/default//modules/register/step2.tpl', 51, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/registration.css">'; ?>

<?php echo '
<script type="text/javascript">
// function to remove parent cat id 
	$str=\'\';
	$parentStr=\'\';
function removeParentCat(parentId){
	if(confirm("Are you sure do you want to remove  this Industry Category?")){
		$("#ul_"+parentId).remove()
	}
}

function removeSubCat(subCat){
	if(confirm("Are you sure do you want to remove this Job Type?")){
		var parentUl = $("#li_"+subCat).parent().attr(\'id\');
		$("#li_"+subCat).remove();		
		var childs   = $("#"+parentUl+\' > li\').size();
		if(childs == 0){
			$("#"+parentUl).remove();			
		}

	}
}
</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<body ></body>
<!-- MIDDLE CONTAIN GOES HERE -->
<section class="inner_wrapper">
<section class="middle_portion">
	<h1 class="registr_head">registration</h1>
    <section class="regis_steps_breadcrum_wrapper">
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step1.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step2_ho.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step3.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step4.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step5.png"></section>
        <section class="clear"></section>
    </section>    
      <section class="regist_form no_bor">
         <section class="heading_per">Category and Services</section>
        <section class="heading_titlesmall">If you want to remove your trade categories then you can remove here</section>
        <section class="clear"></section>
<form id="frmTradesmanAdd" name="frmTradesmanAdd" method="POST" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/register/step3/">        
        <section class="cat_main">
         <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
            <ul id="ul_<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['parent_id']; ?>
">
           <section class="ulheading"> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['tradeName'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onClick="removeParentCat('<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['parent_id']; ?>
')"><strong>x</strong></a></section>
            <input type="hidden" name="parentTradeId[]" value="<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['parent_id']; ?>
" />
        <?php if ($this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr']): ?>
        <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = $this->_sections['j']['loop'];
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?>
                <li name="<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr'][$this->_sections['j']['index']]['jobType']; ?>
" id="li_<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr'][$this->_sections['j']['index']]['jobType']; ?>
">
            &nbsp;&nbsp;<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr'][$this->_sections['j']['index']]['jobName'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onClick="removeSubCat('<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr'][$this->_sections['j']['index']]['jobType']; ?>
')"><strong>x</strong></a>
            <input type="hidden" name="jobTypeId[]" id="jobTypeId" value="<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['jobArr'][$this->_sections['j']['index']]['jobType']; ?>
" />
            </li>
        <?php endfor; else: ?>
            No jobs found
        <?php endif; ?>
        <?php endif; ?>
       </ul>
    <?php endfor; else: ?>
        No Trades found 
    <?php endif; ?>
    <section class="clear"></section>
    </section>
   </section> 
     <div id="nxtbtn" style="display:block; margin-right:-14px !important">
     <section><input type="submit" class="blue_btn rF" value="Next"  name="btnstep3" id="btnstep3"></section>
      <section class="clear"></section>
    </div>
    <section class="clear"></section>
  </form>
</section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>